package com.serene.authority.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.serene.authority.admin.entity.MyUserJob;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author  serene
 * @createTime 2020/8/21
 */
@Mapper
public interface UserJobMapper extends BaseMapper<MyUserJob> {

    /**
     * 批量新增用户岗位信息
     *
     * @param userJobList 用户角色列表
     * @return 结果
     */
    int batchUserJob(List<MyUserJob> userJobList);

    /**
     * 通过用户ID删除用户和岗位关联
     *
     * @param id 用户ID
     * @return 结果
     */
    int deleteUserJobByUserId(Integer id);

}
